<div class='modal-beader'>
    <h3>Update Entity</h3>
</div>
<div class='modal-body'>
    <form name="updateForm">
        <input type="text" ng-model="entity.name" name="name" required="true" ng-trim="true">
        <span class="error" ng-show="updateForm.input.$error.required">
            Required!
        </span>

        <tt>text = {{text}}</tt><br/>
        <tt>updateForm.input.$valid = {{updateForm.input.$valid}}</tt><br/>
        <tt>updateForm.input.$error = {{updateForm.input.$error}}</tt><br/>
        <tt>updateForm.$valid = {{updateForm.$valid}}</tt><br/>
        <tt>updateForm.$error = {{udpateForm.$error}}</tt><br/>
    </form>
    Entity: {{ entity }}
</div>
<div class='modal-footer'>
    <button class='btn btn-primary' ng-click='ok()'>OK</button>
    <button class='btn btn-warning' ng-click='cancel()'>Cancel</button>
</div>
